const express = require('express')
const app = express()
//使用express.json中间体解析客户端发送的json数据
app.use(express.json())
//使用express.urlencoded中间体解析urlencode键值对数据
app.use(express.urlencoded({extended:false}))
//路由配置
app.post('/user',(req,res)=>{
   
    console.log(req.body)
     res.send('post')
})
app.post('/book',(req,res)=>{
   
    console.log(req.body)
     res.send('post')
})
app.listen(80,() => {
 console.log('http://127.0.0.1')
})